#pragma once

// See http://en.wikipedia.org/wiki/Synthesizer#ADSR_envelope
class EnvelopeParameters
{
	int attack;
	int decay;
	int release;
	double sustain;

public:
	EnvelopeParameters(int attack, int decay, double sustain, int release);

	int get_attack() const;
	void set_attack(int attack);

	int get_decay() const;
	void set_decay(int decay);

	double get_sustain() const; // range: 0...1
	void set_sustain(double sustain);

	int get_release() const;
	void set_release(int release);
};
